home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
text
/
tex
/
tpp410n.lha
/
TPPGlobal.lha
/
rexx
/
tpl
/
StartPlainTeX.tpl
< prev
next >
Wrap
Text File
|
1993-01-17
|
1KB
|
60 lines
/* Start PlainTeX - Macro */
/* Kick 2.0 only */
options results
binary='TeX:bigbin/virtex'
format='&plain'
output='>"CON:0/16/700/440/PlainTex Ausgabe Fenster/AUTO/WAIT/ALT/INACTIVE/SCREENTextPlus"'
hailstring='PlainTeX Optionen'
wbtofront='TeX:bin/ptofront'
address 'TextPlus'
/* get name of current file */
'GetName'
compileopts = result
'RequestString' hailstring'\\'compileopts
compileopts = result
n = WORDS(compileopts)
fullname = WORD(compileopts, n)
n = LENGTH(compileopts) - LENGTH(fullname)
compileopts = LEFT(compileopts, n)
PARSE VALUE namestruc(fullname) WITH ivol idirs ibase .
IF fullname == "" then empty = 'true'
else empty = 'false'
IF "" == SUBSTR(fullname, 1+ivol+idirs+ibase) THEN DO
fullname = fullname||".dvi" /* supply a default extension */
ibase = ibase + 4
END
IF 0 = ivol THEN DO
direc = PRAGMA('d')
IF RIGHT(direc,1)~='/' & RIGHT(direc,1)~=':' THEN direc=direc||'/'
fullname = direc||fullname
DROP direc
END
ELSE DO
direc = SUBSTR(fullname, 1, ivol+idirs)
IF RIGHT(direc,1) = '/' THEN DO
n = LENGTH(direc)
direc = LEFT(direc, n-1)
END
call pragma 'Directory', direc
END
DROP ivol idirs ibase
/* valid filename/opts ? */
if empty = 'false' then do
/* address command wbtofront 'Workbench' */
address command binary output format compileopts fullname
end
else
'Display' 'PlainTeX --- Abbruch'